package com.xxl.job.consume.model;

import org.json.JSONStringer;

/**
 * 实时数据实体
 */
public class CurrentInfoDhModel {

    String devCode;
    String signalCode;
    String signalName;
    String signalType;
    String value;
    String valunit;
    String sendTime;
    String time;
    String lastTime;
    String pointAddr;
    String gatherId;
    String gatherResId;

    public String getDevCode() {
        return devCode;
    }

    public void setDevCode(String devCode) {
        this.devCode = devCode;
    }

    public String getSignalCode() {
        return signalCode;
    }

    public void setSignalCode(String signalCode) {
        this.signalCode = signalCode;
    }

    public String getSignalName() {
        return signalName;
    }

    public void setSignalName(String signalName) {
        this.signalName = signalName;
    }

    public String getSignalType() {
        return signalType;
    }

    public void setSignalType(String signalType) {
        this.signalType = signalType;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getValunit() {
        return valunit;
    }

    public void setValunit(String valunit) {
        this.valunit = valunit;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getLastTime() {
        return lastTime;
    }

    public void setLastTime(String lastTime) {
        this.lastTime = lastTime;
    }

    public String getPointAddr() {
        return pointAddr;
    }

    public void setPointAddr(String pointAddr) {
        this.pointAddr = pointAddr;
    }

    public String getGatherId() {
        return gatherId;
    }

    public void setGatherId(String gatherId) {
        this.gatherId = gatherId;
    }

    public String getGatherResId() {
        return gatherResId;
    }

    public void setGatherResId(String gatherResId) {
        this.gatherResId = gatherResId;
    }

    public String toJson() {
        return (new JSONStringer()).object()
                .key("signalCode").value(this.signalCode)
                .key("gatherResId").value(this.gatherResId)
                .key("gatherId").value(this.gatherId)
                .key("signalName").value(this.signalName)
                .key("signalType").value(this.signalType)
                .key("value").value(this.value)
                .key("valunit").value(this.valunit)
                .key("devCode").value(this.devCode)
                .key("time").value(this.time)
                .key("lastTime").value(this.lastTime)
                .key("pointAddr").value(this.pointAddr)
                .key("sendTime").value(this.sendTime)
                .endObject().toString();
    }
}